org.eclipse.vtp.framework.common
Interface IDateObject

All Superinterfaces:
IDataObject

public interface IDateObject
extends IDataObject

Represents a dynamic date and/or time value.

Author:
Lonnie Pryor

Field Summary
static java.lang.String TYPE_NAME
          The name of the date type.
 
Method Summary
 java.util.Date getValue()
          Returns the current value of this data object.
 boolean setValue(java.lang.Object value)
          Sets the value of this data object to the specified value.
 
Methods inherited from interface org.eclipse.vtp.framework.common.IDataObject
getField, getType, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isReadOnly, setField, toString
 

Field Detail

TYPE_NAME

static final java.lang.String TYPE_NAME
The name of the date type.

See Also:
Constant Field Values
Method Detail

getValue

java.util.Date getValue()
Returns the current value of this data object.

Returns:
The current value of this data object.

setValue

boolean setValue(java.lang.Object value)
                 throws java.lang.IllegalStateException
Sets the value of this data object to the specified value.

This method will attempt to coerce the supplied value into a Java Date object.

Parameters:
value - The value to assign to this data object.
Returns:
False if the supplied value cannot be coerced into a Java Date.
Throws:
java.lang.IllegalStateException - If this object is read-only.